package com.goodomen.garbage.score.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
@Getter
@Setter
public class CommonConfig {

    /**
     * JWT 秘钥
     */
    @Value("${jwt.secret}")
    private String jwtSecret;

    /**
     * JWT 秘钥
     */
    @Value("${jwt.expire.interval}")
    private Long jwtExpireInterval;

    /**
     * JWT 跨域白名单
     */
    @Value("${jwt.white.ip}")
    private String jwtWhiteIp;
    /**
     * 10min最多多少条
     */
    @Value("${sms.ten.minutes.max}")
    private Long smsTenMinutesMax;
    /**
     * 一天最多多少条
     */
    @Value("${sms.one.day.max}")
    private Long smsOneDayMax;

    /**
     * AES加密的盐
     */
    @Value("${aes.salt}")
    private String aesSalt;

    /**
     * 系统昵称的前缀
     */
    @Value("${pre.nickname}")
    private String preNickname;

}
